2343f3c650ef86ebcbc5b1d2669cd5d460651bf3,xwiki-url/xwiki-url-default/src/main/java/org/xwiki/url/internal/RegexXWikiURLFactory.java,RegexXWikiURLFactory,createURL,#String#,68

Before Change



    public XWikiURL createURL(String urlAsString) throws InvalidURLException
    {
        XWikiURL url = new XWikiURL();

        // Use a regex to parse the URL into its discrete parts:
        // <protocol>://<server>:<port>/<context>/<action>/<space>/<document>
        Matcher matcher = this.regexPattern.matcher(urlAsString);
        if (matcher.matches()) {

            // Find the wiki part in the URL
            String wiki = matcher.group(Integer.parseInt((String) this.regexMappings.get("wiki")));
            
            // Find the action part in the URL
            String action = matcher.group(Integer.parseInt((String) this.regexMappings.get("action")));
            url.setAction(action);

            // Find the space part in the URL
            String space = matcher.group(Integer.parseInt((String) this.regexMappings.get("space")));

After Change


            
            // Find the action part in the URL
            String action = matcher.group(Integer.parseInt((String) this.regexMappings.get("action")));
            url.setAction(action);
            
            // Find the query string if any and transform it into a parameter Map for easy access
            String queryString = matcher.group(Integer.parseInt((String) this.regexMappings.get("queryString")));